package jerry.html.events;

import java.util.List;

/**
 * 
 * 
 * Is a bot event
 * 
 * 
 * @author (h0t@_G0|i
 * 
 */
public class IsBotEvtCapImpl
    extends EvtCap
{

    public IsBotEvtCapImpl(List<String> list)
    {
        int i = list.size();
        if(i < 5)
        {
            validEvt = false;
            return;
        }
        validEvt = true;
        timeStamp = Double.valueOf(list.get(0)).doubleValue();
        playerId = Integer.parseInt(list.get(3));
        String s = list.get(4);
        if(s.equals("False") || s.equals("Falso") || s.equals("Nein") || s.equals("Faux"))
            isBot = false;
        else
            isBot = true;
    }
    public int playerId;
    public boolean isBot;
}
